package com.suncnpap.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.app.util.database.mybatis.Page;
import com.suncnpap.system.service.ConfigService;
import com.suncnpap.system.mapper.ConfigMapper;
import com.suncnpap.system.model.Config;

/** 
 * 说明： 系统设置Service实现类
 * @version
 */
@Service("configService")
public class ConfigServiceImpl implements ConfigService{

	
	@Autowired
	ConfigMapper configMapper;
	
	@Override
	public void add(Config obj) {
		// TODO Auto-generated method stub
		configMapper.add(obj);
	}

	@Override
	public void update(Config obj) {
		// TODO Auto-generated method stub
		configMapper.edit(obj);
	}

	@Override
	public void deleteById(String strId) {
		// TODO Auto-generated method stub
		configMapper.deleteById(strId);
		
	}
	@Override
	public void deleteMore(String[] strIds) {
		// TODO Auto-generated method stub
		configMapper.deleteMore(strIds);
	}

	@Override
	public Page list(Page page) {
		// TODO Auto-generated method stub
		List<Config> list = configMapper.datalistPage(page);
		page.setDataList(list);
		return page;
	}


	@Override
	public int findCount(Page page) {
		// TODO Auto-generated method stub
		return configMapper.findCount(page);
	}

	@Override
	public Config findById(String strId) {
		// TODO Auto-generated method stub
		return configMapper.findById(strId);
	}
	
	@Override
	public Config findBySchoolId(String strSchoolId) {
		// TODO Auto-generated method stub
		return configMapper.findBySchoolId(strSchoolId);
	}
}

